instance variable

[ˈɪnstəns ˈveəriəbl]
  • 网络

    实例变量;实体变量

数据更新时间:2026-04-19 15:21:51
1、

We also used an instance variable to store a reference to the mock object.

我们还使用了实例变量来存储对模仿对象的引用。

互联网摘选

2、

A view class has a special instance variable called@ main_view_component that references its corresponding Swing class.

视图类有一个专用的实例变量@main view component,它引用相应的Swing类。

互联网摘选

3、

It also creates a constructor that sets this instance variable.

同时也创建了用于设置这个实例变量的构造函数。

互联网摘选

4、

Select for each view component the corresponding instance variable.

为每个视图组件选择相应的实例变量。

互联网摘选

5、

Unless an instance variable is decorated with an annotation, it will be a transient instance variable.

除非一个实例变量被标注修饰,否则他将成为一个瞬时变量。

互联网摘选

6、

Note that the validation logic is hardcoded into the method before the instance variable is set.

注意,在设置实例变量之前,验证逻辑被硬编码到方法中。

互联网摘选

7、

Q: What is the default value of an object reference declared as an instance variable?

一个对象的缺省值是什么,当以一个实例变量作为参考时?

互联网摘选

8、

This time, you need to add an instance variable to actually remember the state.

现在,应该添加一个实例变量来实际记忆状态。

互联网摘选

9、

You can store a collection of orders in an instance variable for the appropriate customer.

您可以在适当客户的实例变量中存储订单集合。

互联网摘选

10、

The controller sets up the@ person instance variable for the view to use.

控制器设置视图使用的@person实例变量。

互联网摘选

11、

Note that this operation cannot be achieved reliably by making the value instance variable volatile.

注意,通过使值实例变量成为可变变量并不能可靠地完成这项操作。

互联网摘选

12、

An instance variable and an if statement are used skillfully in the process of design, which solves the problem of picture flash.

在设计过程中,巧妙地使用了一个窗口实例变量和一个条件语句,解决了图片闪烁的问题。

互联网摘选

13、

Because Ruby does not require instance variable declaration, the simplest way to model instance variables is with a hash.

由于Ruby并不需要声明实例变量,因此建模实例变量最简单的方式就是使用散列。

互联网摘选

14、

This simple construct saves another three to six lines of code for each instance variable, where a getter and/ or a setter method is required.

这个简单的想法能为每个实例变量省掉3~6行的setter与getter方法代码。

互联网摘选

15、

This can cause late detection that the callback was not running in the correct object context ( for example, incorrect object instance variable values).

这有可能会导致对回调是否运行在正确的对象上下文内的检测滞后(例如,对象实例变量的值不正确)。

互联网摘选

16、

With each key, an instance variable is created on the object with that name and data.

对于每个键,会在对象上创建一个具有对象名称和数据的实例变量。

互联网摘选

17、

If you create an instance variable in your controller, that variable will magically be available to your view template.

如果您在控制器中创建了一个实例变量,那么这个变量就可以直接在视图模板中使用。

互联网摘选

18、

The constructor will set the credit limit instance variable to be equal to that specified as a parameter.

构造器会把该实例变量(即信用限制)设为一个参数。

互联网摘选

19、

If you explicitly set the instance variable called prototype, JavaScript will look in this instance for any undefined instance variables or attributes.

如果您显式设置了名为prototype的实例变量,JavaScript就会在此实例中寻找任何未定义的实例变量或属性。

互联网摘选

20、

You'll set a prototype instance variable to point to the parent in the inheritance chain.

方法是设置prototype实例变量使其指向继承链的父。

互联网摘选

21、

Using a static member through an instance variable should be discouraged.

不鼓励通过实例变量来使用静态成员。

互联网摘选

22、

Renders a heading with the content in the instance variable count, which contains the value of a simple counter.

使用实例变量count中的内容呈现了一个标题,该变量包含了一个简单计数器的值。

互联网摘选

23、

Therefore the suggested programming practice is to look up the service in the init method of the portlet and store it in an instance variable.

因此,建议的编程实践是在Portlet的init方法中查找服务,并将其存储在一个实例变量中。

互联网摘选

24、

This is the instance variable you were previously asked to provide a name for.

这就是之前要求您输入名称的实例变量。

互联网摘选

25、

A select_card method picks a card at random and assigns it the@ current_card instance variable.

select card方法随机选取一张卡片,并将它赋给@current card实例变量。

互联网摘选

26、

The return value from each method call is assigned to an instance variable for the class.

将每个方法调用的返回值赋给该类的一个实例变量。

互联网摘选

27、

The respond_to method accepts a single code block and passes one instance variable ( labeled wants) into the code block.

respond to方法接受单个代码块,并传递一个实例变量(标为wants)到代码块。

互联网摘选

28、

Suppose the getX() method only answers the value of an instance variable.

假定getX()方法只提供某一实例变量的值。

互联网摘选

29、

The keyword var is used to denote an instance variable in JavaFX.

关键字var用于表示JavaFX中的一个实例变量。

互联网摘选

30、

N.B.The keyword" def", used here as an instance variable modifier, indicates that the variables are properties.

请注意,关键字“def”在这儿作为一个实例变量的修饰符使用,指明变量是属性。

互联网摘选

  • 相关词组
  • 今日热词
  • 热门搜索

英语网英语词典(dict.25820.com)为您提供在线翻译英语词典单词大全英译汉汉译英等英语服务!可按单词字数词义分类查询。支持lj:关键词格式查询例句。

用户反馈
请选择反馈类型(可多选):
您的联系方式:
反馈内容:
提交成功 小编会尽快处理
回到顶部
点击反馈